const express=require("express");

// 2.1 引入对应的路由模块
const passportRouters = require('./routes/passport');

const app=express();

//1.1引入body-parser
const bodyParser=require('body-parser');

app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());

// 2.2 书写的路由添加到app上
app.use(passportRouters);



app.listen(8000,()=>{
  console.log("正在监听8000端口");
})